package com.fis.hlo.pm.client;

import java.net.URL;

import javax.xml.namespace.QName;

import com.fis.hlo.pm.excrate.PMExchangeRateTransferer;
import com.fis.hlo.pm.excrate.PMExchangeRateTransfererService;
import com.fis.mca.config.Config;
import com.fis.mca.config.ConfigConstant;

public class ExcRateTransfererClient {
	private static final QName SERVICE_NAME =new QName("http://excrate.pm.hlo.fis.com/", "PMExchangeRateTransfererService");
	private static final String WSDL_URL = Config
			.getURL(ConfigConstant.PM_EXC_RATE_PORT_KEY);

	public static PMExchangeRateTransferer getService() throws Exception{
		URL url = new URL(WSDL_URL);
		PMExchangeRateTransfererService ss = new PMExchangeRateTransfererService(url, SERVICE_NAME);
		PMExchangeRateTransferer port = ss.getPMExchangeRateTransfererPort();
		return port;
	}
}
